<template>
  <el-card class="box-card">
    <div slot="header" class="clearfix">
      <span>案例库</span>
      <el-link @click="change(1)" style="float: right; padding: 3px 0">正面案例</el-link>
      <span style="float: right; padding: 3px 0">|</span>
      <el-link @click="change(2)" style="float: right; padding: 3px 0">负面案例</el-link>

    </div>
    <img src="static/img/anli.JPG">
    <div class="text item">
      <el-row>
        <el-button type="info">热门案例一</el-button>
      </el-row>
      <el-row>
        <el-button type="info">热门案例二</el-button>

        <el-button type="info">热门案例三</el-button>

        <el-button type="info">热门案例四</el-button>
      </el-row>

    </div>
  </el-card>
</template>

<script>
  export default {
    name: "Case",
    methods: {
      change(index) {
        console.log(index);
      }
    }
  }
</script>

<style scoped>
  .text {
    font-size: 14px;
  }

  .item {
    margin-bottom: 10px;
  }

  .clearfix:before,
  .clearfix:after {
    display: table;
    content: "";
  }

  .clearfix:after {
    clear: both
  }

  .box-card {
    width: 370px;
  }
</style>
